#include "stu.h"

stu students[100] =
    {
        {1, "王星星", "男", 21, 99},
        {2, "唐三", "男", 18, 89},
        {3, "萧炎", "男", 18, 89},
        {4, "小舞", "女", 18, 79},
        {5, "小医仙", "女", 18, 79},
        {6, "熊婷", "女", 19, 100}};
int main(int argc, char const *argv[])
{
    stu *L = students;
    int len = 6;
    show_list(L, len);
    stu stu1;
    printf("请输入你要插入的学生信息:\n");
    scanf("%d %s %s %d %d", &stu1.id, stu1.name, stu1.sex, &stu1.age, &stu1.sco);
    insert_data(L, stu1, &len);
    show_list(L, len);
    char name[128];
    printf("请输入你要查询的学生姓名:\n");
    scanf("%s", name);
    search_data(L, name, len);
    return 0;
}
